<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Storage</title>
  </head>
  <body>
    <div>ss</div>
    <a href="./home.html">link to home</a>
    <script>
      let passWord = localStorage.getItem("passWord");

      if (passWord) {
        alert("your passWord is:" + passWord);
      } else {
        passWord = prompt("set you password");
        console.log(passWord);
        localStorage.setItem("passWord", passWord);
      }

      sessionStorage.setItem("retied", "retied");
    </script>
  </body>
</html>
